/* Copyright (c) 2010 OFXKit
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#import <Foundation/Foundation.h>

#import "OFXAccount.h"

@interface OFXBankAccount : OFXAccount {
  NSString* bankId;
  NSString* branchId;
}

/**
 * @property bankId
 * @brief Bank identifier, A-9 
 *
 * Use of this field by country:
 * - COUNTRY: Interpretation 
 *  - BEL: Bank code 
 *  - CAN: Routing and transit number 
 *  - CHE: Clearing number 
 *  - DEU: Bankleitzahl 
 *  - ESP: Entidad
 *  - FRA: Banque 
 *  - GBR: Sort code 
 *  - ITA: ABI
 *  - NLD: Not used (field contents ignored) 
 *  - USA: Routing and transit number
 */
@property(retain) NSString* bankId;

/**
 * @property branchId
 * @brief Branch identifier. 
 * May be required for some non-US banks, A-22
 *
 * Use of this field by country:
 * - COUNTRY: Interpretation 
 *   - BEL: Not present 
 *   - CAN: Not present 
 *   - CHE: Not present 
 *   - DEU: Not present 
 *   - ESP: Oficina
 *   - FRA: Agence 
 *   - GBR: Not present 
 *   - ITA: CAB 
 *   - NLD: Not present
 *   - USA: Not present
 */
@property(retain) NSString* branchId;

@end
